import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
// 挂载到vue实例上
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import '@/assets/style/index.scss'

import initSvgIcon from '@/assets/icons/index'

console.log('initSvgIcon', initSvgIcon)
const app = createApp(App)
installElementPlus(app)
app.use(store).use(router).use(initSvgIcon).mount('#app')

// // vue实例上挂载属性类型声明
declare module '@vue/runtime-core' {
  interface ComponentCustomProperties {
    $message: typeof ElMessage;
    $notify: typeof ElNotification;
    $alert: typeof ElMessageBox.alert;
    $prompt: typeof ElMessageBox.prompt;
  }
}
